package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-07-21 16:20
 */
public class Computer {
    String name;
    int winCount;

    //出拳
    public int fist(){
        return((int)(Math.random()*1000))%3+1;
    }

    //显示出拳
    public String showFistName(int computerShowNum){
        String computerShowName="";
        switch (computerShowNum) {
            case 1:
                computerShowName = "剪刀";
                break;
            case 2:
                computerShowName = "石头";
                break;
            case 3:
                computerShowName = "布";
                break;
        }
        return computerShowName;
    }

}
